/**
 * @className Seckil
 * @author liuxuelin
 * @Date 2021/1/16
 * @version v1.0
 */
package com.hidt.shop.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;

//限时秒杀表实体类
public class Seckil {
    private int seckil_id;//主键
    private int goods_id;//商品id
    private int seckil_discount;//秒杀折扣
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date seckil_date;//秒杀日期
    private int seckiltime_id;//秒杀时间段id
    private int seckil_count;//商品秒杀总数量
    private int sold_number;//售出数量
    private int seckil_limit;//限购数量
    private int is_delete;//是否删除标志
    private Goods goods;

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getSeckil_id() {
        return seckil_id;
    }

    public void setSeckil_id(int seckil_id) {
        this.seckil_id = seckil_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getSeckil_discount() {
        return seckil_discount;
    }

    public void setSeckil_discount(int seckil_discount) {
        this.seckil_discount = seckil_discount;
    }

    public Date getSeckil_date() {
        return seckil_date;
    }

    public void setSeckil_date(Date seckil_date) {
        this.seckil_date = seckil_date;
    }

    public int getSeckiltime_id() {
        return seckiltime_id;
    }

    public void setSeckiltime_id(int seckiltime_id) {
        this.seckiltime_id = seckiltime_id;
    }

    public int getSeckil_count() {
        return seckil_count;
    }

    public void setSeckil_count(int seckil_count) {
        this.seckil_count = seckil_count;
    }

    public int getSold_number() {
        return sold_number;
    }

    public void setSold_number(int sold_number) {
        this.sold_number = sold_number;
    }

    public int getSeckil_limit() {
        return seckil_limit;
    }

    public void setSeckil_limit(int seckil_limit) {
        this.seckil_limit = seckil_limit;
    }

    public int getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(int is_delete) {
        this.is_delete = is_delete;
    }

    public Seckil() { }

    public Seckil(int seckil_id, int goods_id, int seckil_discount, Date seckil_date, int seckiltime_id,
                  int seckil_count, int sold_number, int seckil_limit, int is_delete) {
        this.seckil_id = seckil_id;
        this.goods_id = goods_id;
        this.seckil_discount = seckil_discount;
        this.seckil_date = seckil_date;
        this.seckiltime_id = seckiltime_id;
        this.seckil_count = seckil_count;
        this.sold_number = sold_number;
        this.seckil_limit = seckil_limit;
        this.is_delete = is_delete;
    }

    @Override
    public String toString() {
        return "Seckil{" +
                "seckil_id=" + seckil_id +
                ", goods_id=" + goods_id +
                ", seckil_discount=" + seckil_discount +
                ", seckil_date=" + seckil_date +
                ", seckiltime_id=" + seckiltime_id +
                ", seckil_count=" + seckil_count +
                ", sold_number=" + sold_number +
                ", seckil_limit=" + seckil_limit +
                ", is_delete=" + is_delete +
                '}';
    }
}
